import type { AppRouteModule } from '/@/router/types';

import { LAYOUT } from '/@/router/constant';
import { t } from '/@/hooks/web/useI18n';

const record: AppRouteModule = {
  path: '/record',
  name: 'Record',
  component: LAYOUT,
  redirect: '/record/manager',
  meta: {
    orderNo: 3,
    icon: 'ant-design:trademark-circle-outlined',
    title: t('routes.busi.record.moduleName'),
  },
  children: [
    {
      path: 'manager',
      name: 'RecordManager',
      meta: {
        title: t('routes.busi.record.manager'),
        ignoreKeepAlive: false,
      },
      component: () => import('/@/views/busi/record/index.vue'),
    },
  ],
};

export default record;
